package cn.kuporo.seckill.stock.application.model.command;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: kuporo
 * @since: 2025/8/2
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SeckillStockBucketCommand {
    /**
     * 总库存
     */
    private Integer totalStock;
    /**
     * 分桶数量
     */
    private Integer bucketsQuantity;
    /**
     * 分桶编排模式, 1:总量模式  2：增量模式
     */
    private Integer arrangementMode;

    public boolean isEmpty(){
        return this.totalStock == null
                || this.bucketsQuantity == null
                || this.arrangementMode == null;
    }
}
